﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using HK2009.EntityQuery;
namespace HK2009.BusinessFacade
{
    public interface ISystemHandler
    {
        /// <summary>
        /// 判断当前用户有没有输入的权限
        /// </summary>
        /// <returns></returns>
        bool CheckPermission(int userID, int purviewID);
        string GetLoginUserPermissions();
        string GetLoginUserPermissions(bool getRoleCode);

        string GetClient(object id);
        string GetPlace(object id);        
        string GetUserName(object userID);
        string GetDriver(object id);
        SystemConfigQuery GetConfig(string configName);
        bool UpdateConfig(SystemConfigQuery query);
       
        /// <summary>
        /// 判断用户是否是公司用户2
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        bool IsCompanyRoles2();
    }
}
